// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'ProductLockId',
        footer: "Foots",
        cnName: '产品锁定',
        name: 'productlockmodel',
        url: "/productlockmodel/",
        sortName: "ProductLockId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {};
    const editFormOptions = [];
    const searchFormFields = {"ProductLockCode":"","ProductLockType":"","LockInTime":""};
    const searchFormOptions = [[{"dataKey":"工序维护","data":[],"title":"产品锁定类型","field":"ProductLockType","type":"select"}],[{"title":"编码","field":"ProductLockCode","type":"="}],[{"title":"锁定起止时间","field":"LockInTime","type":"datetime"}]];
    const columns = [{field:'ProductLockId',title:'产品锁定id',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ProductLockCode',title:'编码',type:'string',width:180,align:'left',sort:true},
                       {field:'ProductLockType',title:'产品锁定类型',type:'int',bind:{ key:'工序维护',data:[]},width:110,align:'left'},
                       {field:'ProductLockProduction',title:'产品锁定工序（外键）',type:'string',width:120,align:'left'},
                       {field:'ProductLockBeginTime',title:'开始时间',type:'datetime',width:150,hidden:true,align:'left',sort:true},
                       {field:'ProductLockEndTime',title:'结束时间',type:'datetime',width:150,hidden:true,align:'left',sort:true},
                       {field:'CreateUserName',title:'创建人',type:'string',width:220,align:'left'},
                       {field:'LockInTime',title:'锁定起止时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'LockingReason',title:'锁定原因',type:'string',width:220,hidden:true,align:'left'},
                       {field:'UpdateUserName',title:'修改人',type:'string',width:220,hidden:true,align:'left'},
                       {field:'CreateTime',title:'创建时间',type:'datetime',width:150,hidden:true,align:'left',sort:true},
                       {field:'UpdateTime',title:'更新时间',type:'datetime',width:150,hidden:true,align:'left',sort:true},
                       {field:'IsDeleted',title:'软删除',type:'sbyte',width:110,hidden:true,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}